import { getLogin } from '../../views/Login/api'
const state = {
    user: {},
    token: ''
}
const mutations = {
    SET_USER(state, payload) {
        state.user = payload
    }
}
const actions = {
    loginn({ commit }, payload) {
        return getLogin(payload).then((res) => {
            console.log(res, '登录')
        })
    }
}
export default {
    state,
    mutations,
    actions,
    namespaced: true
}